#ifndef ETAVIEWOBJECT_H
#define ETAVIEWOBJECT_H

#include "viewobject.h"
#include <QLabel>
#include <qdom.h>

typedef struct EtaViewParam
{
    QString         m_textContent;
    EtaViewParam()
    {
        m_textContent = "";
    }
}EtaViewParam;

class EtaView:public ViewObject
{
    Q_OBJECT
public:
    static int m_id;
    Q_INVOKABLE explicit EtaView(QWidget *parent = 0);
    ~EtaView();

    void ShowObject();

    void GetAttribute(std::string&);

    void SetAttribute(std::string);

    void ParseXML(QDomElement* );

    void PacketXML(QDomElement*);

private:
    QLabel*                          m_label;
    EtaViewParam*                    m_paramEtaView;
};

#endif // ETAVIEWOBJECT_H
